package com.lgx.mall.business.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.lgx.common.entity.IdGenerator;

/**
 * 扣分记录
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name="TM_MARKINGRECORDS")
public class MarkingRecords implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -474506910104401954L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.POINTSRECORD_ID_GENERATOR)
	@TableGenerator(
			name = IdGenerator.POINTSRECORD_ID_GENERATOR,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.POINTSRECORD_ID_GENERATOR,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private long id;
	
	/**
	 * 扣分实体ID
	 */
	private String entityId;
	
	/**
	 * 
	 */
	private String entityName;
	
	/**
	 * 扣分实体类型
	 */
	private String type;
	
	/**
	 * 记录IP
	 */
	private String recordIP;
	
	/**
	 * 记录时间
	 */
	private Date recordTime;
	
	/**
	 * 扣分
	 */
	private Double points;
	
	/**
	 * 备用1
	 */
	private String prop1;
	
	/**
	 * 备用2
	 */
	private String prop2;
	
	/**
	 * 备用3
	 */
	private String prop3;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getEntityId() {
		return entityId;
	}

	public void setEntityId(String entityId) {
		this.entityId = entityId;
	}

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getRecordIP() {
		return recordIP;
	}

	public void setRecordIP(String recordIP) {
		this.recordIP = recordIP;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public Double getPoints() {
		return points;
	}

	public void setPoints(Double points) {
		this.points = points;
	}

	public String getProp1() {
		return prop1;
	}

	public void setProp1(String prop1) {
		this.prop1 = prop1;
	}

	public String getProp2() {
		return prop2;
	}

	public void setProp2(String prop2) {
		this.prop2 = prop2;
	}

	public String getProp3() {
		return prop3;
	}

	public void setProp3(String prop3) {
		this.prop3 = prop3;
	}
}
